<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<?
  include "conexao.php" ;
  $conec ;
  $bco ;
 
  include "cabecalho.php" ;
  $login = $_POST['txlogin'] ;
      
  $stgsql = $conec->prepare("select * from usu 
							where username= \"$login\"");  
  $stgsql->execute();
  
  if ($stgsql->rowCount() > 0){
	    
	  $stgsql = $conec->prepare(" delete from usu where username=\"$login\"");  
	  $stgsql->execute();
	  
	  include "sucessoexclusao.php";
  }else {
	  include "erroexclusao.php" ;
  }
  
  include "rodape.php" ;
?>
</body>
</html>
